﻿using System.Runtime.Serialization;
using System.Collections.Generic;
using System;
using System.Xml.Serialization;

namespace RaveEngine.Engine.Query.Aggregate
{
    [Serializable, XmlRoot, DataContract]
    public class AggregateResponse
    {
        public AggregateResponse()
        {
            data = new List<AggregateItemData>();
        }

        [DataMember]
        [XmlElement]
        public List<AggregateItemData> data { get; set; }

    }

    [Serializable, XmlRoot, DataContract]
    public class AggregateItemData
    {
        [DataMember]
        [XmlAttribute]
        public string name { get; set; }

        [DataMember]
        [XmlAttribute]
        public string value { get; set; }
    }
}
